/*
    SUSAN® - Sole of Unix Save ANything

   Copyright (C) 2016-2019 Skyatlas co. ltd

   
*/

#ifndef BAREOS_FILED_DIR_CMD_H_
#define BAREOS_FILED_DIR_CMD_H_ 1

class JobControlRecord;
class BareosSocket;

namespace filedaemon {

JobControlRecord* create_new_director_session(BareosSocket* dir);
void* process_director_commands(JobControlRecord* jcr, BareosSocket* dir);
void* handle_director_connection(BareosSocket* dir);
bool StartConnectToDirectorThreads();
bool StopConnectToDirectorThreads(bool wait = false);
} /* namespace filedaemon */

#endif /* BAREOS_FILED_DIR_CMD_H_ */
